<#import "../home/masterTemplate.ftl" as layout />
<#include "../macros/utils.ftl" />
<#import "../macros/spring.ftl" as spring />

<#----><#include "/dumps/dump-util.ftl" />

<#assign scriptsObj>
	<#if isMobile()>

	<#else>
		require(["../js/modules/form", "../js/topics/topics"], function() {
	</#if>
		base.init();
		base.topics.init();

	<#if !isMobile()>
		});
	</#if>
</#assign>

<#assign user = m_site.m_user />

<@layout.masterTemplate wtSection="" wtSubsection="" title="" bodycss="" wrappercss="bg" section="home" subsection="" pagename="" color="" sectionIdx="4">

	<@backHeader "Add" "Topics" /> 

	<div class="col1-of-2">
		<div class="frm comment-form cf" id="addTopic" data-async="true" data-type="add">
			<div class="content"></div>
			<form action="<@spring.url '/topics/add_input/' />" method="POST">
			  <div class="form-group">
			  	<label for="title">title:</label>
			  	<input type="text" class="form-control" id="title" name="title" placeHolder="title" title=" title" required="required" data-rules="maxlength:45" />
			  </div>
			  <div class="form-group .wysiwyg">
			  	<label for="description">description:</label>
			  	<textarea class="form-control" id="description" name="description" placeHolder="description" rows="3" title=" description" required="required" data-rules="maxlength:255"></textarea>
			  </div>
			  <div class="cf confirm"><a class="btn btn-primary submit right" role="button">submit</a></div>
			</form>
		</div>
	</div>
	<div class="col2-of-2">
		
	</div>
	<#----><@dumper m_site "m_site" false true/>
</@layout.masterTemplate>